/**
 * 2011 HuYao
 */
package com.wh.data.model;

/**
 * @author HuYao
 * 
 */
public abstract class SumBase {
    private int _therapist = 0;
    private int _start = 0;
    private int _end = 0;
    private int _day = 0;

    /**
     * @param therapist
     * @param start
     * @param end
     * @param day
     */
    public SumBase(int therapist, int start, int end, int day) {
	this._therapist = therapist;
	this._start = start;
	this._end = end;
	this._day = day;
    }

    /**
     * @return the _therapist
     */
    public int getTherapist() {
	return this._therapist;
    }

    /**
     * @return the _start
     */
    public int getStart() {
	return this._start;
    }

    /**
     * @return the _end
     */
    public int getEnd() {
	return this._end;
    }

    /**
     * @return the _day
     */
    public int getDay() {
	return this._day;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
	if (obj instanceof SumBase) {
	    SumBase o2 = (SumBase) obj;
	    if (this.getDay() == o2.getDay() && this.getEnd() == o2.getEnd()
		    && this.getStart() == o2.getStart()
		    && this.getTherapist() == o2.getTherapist())
		return true;
	    return false;
	}
	return false;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
	// TODO Auto-generated method stub
	return super.hashCode();
    }

}
